public class Account {

	private String userName;
	private String userSurname;
    
	private double balance;
	
	public Account(String name,String sname,double bal)
	{
		userName = name;
		userSurname = sname;
		balance = bal;
	}

	public Account()
	{
		userName = "";
		userSurname = "";
		balance = 0.0;
	}
	

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserSurname() {
		return userSurname;
	}

	public void setUserSurname(String userSurname) {
		this.userSurname = userSurname;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public String toString() {
		String a = userName + "--" + userSurname + "--" + String.valueOf(balance);
		return a;
	}

	public boolean equals(Account gelen)
	{
		
		if(this.userName.equalsIgnoreCase(gelen.userName) && this.userSurname.equalsIgnoreCase(gelen.userSurname)) return true;
		else return false ;
	}
}

